package com.copa.module.cart.service;

import com.copa.domain.ResponseDto;
import com.copa.module.goods.domain.dto.GoodsAttributeDto;
import com.copa.module.goods.domain.dto.GoodsProductDto;
import com.copa.module.goods.domain.dto.GoodsSpecDto;
import com.copa.module.goods.domain.entity.GoodsProductEntity;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author copa
 * @createDate 2021-01-22 15:18
 * @function
 */
public interface GoodsManage {

    ResponseDto<List<GoodsProductDto>> findGoodsSpuByGoodsId(Long goodsId);

    ResponseDto<List<GoodsAttributeDto>> findGoodsAttributeByGoodsId(Long goodsId);

    ResponseDto<List<GoodsSpecDto>> findGoodsSpecByGoodsId(Long goodsId);

    BigDecimal calTotalMoney(List<Long> cartIds);

    GoodsProductEntity findGoodsSpuByProductId(Long productId);
}
